<template>
    <div>
        <el-form :model="inquiryForm" label-width="90px" :rules="FormRules" ref="addForm">
            <el-form-item label="单价" prop="price">
                <el-input v-model="inquiryForm.name"></el-input>
            </el-form-item>
            <el-form-item label="数量" prop="price">
                <el-input-number v-model="inquiryForm.num" :min="1"></el-input-number>
            </el-form-item>
            <el-form-item label="是否含运费">
                <el-radio-group v-model="inquiryForm.freight">
                    <el-radio label="1">是</el-radio>
                    <el-radio label="0">否</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item label="地址" prop="address">
                <el-input v-model="inquiryForm.address"></el-input>
            </el-form-item>
            <el-form-item label="备注" prop="remarks">
                <el-input v-model="inquiryForm.remarks"></el-input>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="handSave()">保存</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>
<script>
export default {
  data() {
    return {
      inquiryForm: {},
      FormRules: {
        name: [
          { required: true, message: "请输入活动名称", trigger: "blur" },
          { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" }
        ]
      }
    };
  },
  methods: {
    handSave() {
      this.$message({
        message: "成功",
        type: "success"
      });
      this.$emit('hideTotas')
    }
  }
};
</script>

<style lang="less" scoped>
</style>
